package br.ucl.arvore;

import java.util.LinkedList;

/**
 *
 * @author Luis
 */
public class Node 
{
    public Node pPai;
    public LinkedList<Node> filhos;
    public String valor;
    public int dist;
    
    public Node()
    {
        this.pPai = null;
        this.dist = 0;
        this.valor = null;
    }
    
    public Node(String valor, Node pPai)
    {
        this.valor = valor;
        this.dist = 0;
        this.pPai = pPai;
    }
    
    public Node(String valor)
    {
        this.valor = valor;
        this.dist = 0;
        this.pPai = null;
    }
    
    public Node(String valor, int dist)
    {
        this.valor = valor;
        this.dist = dist;
        this.pPai = null;
    }
    
    public Node(String valor, int dist, Node pPai)
    {
        this.valor = valor;
        this.dist = dist;
        this.pPai = pPai;
    }
}